import request from './request'

export const getdata = () => {
    return request({
        url: '/home/gamelist',
        method: 'GET'
    })
}

//根据游戏ID获取游戏
export const getdatabyid = (data) => {
    return request({
        url: '/getdata/game',
        method: 'POST',
        data
    })
}

//根据游戏ID获取游戏评论
export const getcommentsbyid = (data) => {
    return request({
        url: '/getdata/comments',
        method: 'POST',
        data
    })
}


//游戏搜名字索
export const getgamedata = (data) => {
    return request({
        url: '/search/game',
        method: 'POST',
        data
    })
}


//用户id搜索用户信息
export const getuserdata = (data) => {
    return request({
        url: '/getdata/userinfo',
        method: 'POST',
        data
    })
}


//根据userid获取用户评论
export const usercomments = (data) => {
    return request({
        url: '/getdata/usercomments',
        method: 'POST',
        data
    })
}

